<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../../CSS/Divlayouts.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Computers</title>
<?php 

session_start();
if(@$_SESSION['status'] == " ")
{
@$_SESSION['status']=NULL;
}
?>

<style type="text/css">
#Pannel {
	position:absolute;
	width:989px;
	height:790px;
	z-index:3;
	left: 263px;
	top: 250px;
}
#apDiv1 {
	position:absolute;
	width:166px;
	height:303px;
	z-index:4;
	left: 278px;
	top: 260px;
}
#apDiv2 {
	position:absolute;
	width:170px;
	height:302px;
	z-index:5;
	left: 469px;
	top: 261px;
}
#apDiv3 {
	position:absolute;
	width:179px;
	height:302px;
	z-index:6;
	left: 665px;
	top: 262px;
}
#apDiv4 {
	position:absolute;
	width:185px;
	height:302px;
	z-index:7;
	left: 864px;
	top: 261px;
}
#apDiv5 {
	position:absolute;
	width:167px;
	height:301px;
	z-index:8;
	left: 1075px;
	top: 263px;
}
#apDiv6 {
	position:absolute;
	width:168px;
	height:327px;
	z-index:9;
	left: 273px;
	top: 593px;
}
#apDiv7 {
	position:absolute;
	width:169px;
	height:330px;
	z-index:10;
	left: 470px;
	top: 592px;
}
#apDiv8 {
	position:absolute;
	width:175px;
	height:333px;
	z-index:11;
	left: 669px;
	top: 590px;
}
#apDiv9 {
	position:absolute;
	width:183px;
	height:330px;
	z-index:12;
	left: 866px;
	top: 591px;
}
#apDiv10 {
	position:absolute;
	width:164px;
	height:335px;
	z-index:13;
	left: 1075px;
	top: 589px;
}
#cart {
	position:absolute;
	width:108px;
	height:28px;
	z-index:6;
	left: 822px;
	top: -149px;
}
#apDiv11 {
	position:absolute;
	width:95px;
	height:37px;
	z-index:14;
	left: 33px;
	top: 232px;
}
#apDiv12 {
	position:absolute;
	width:95px;
	height:37px;
	z-index:15;
	left: 41px;
	top: 231px;
}
#apDiv13 {
	position:absolute;
	width:112px;
	height:38px;
	z-index:16;
	left: 41px;
	top: 231px;
}
#apDiv14 {
	position:absolute;
	width:97px;
	height:40px;
	z-index:17;
	left: 48px;
	top: 231px;
}
#apDiv15 {
	position:absolute;
	width:114px;
	height:42px;
	z-index:18;
	left: 28px;
	top: 230px;
}
#apDiv16 {
	position:absolute;
	width:112px;
	height:38px;
	z-index:19;
	left: 31px;
	top: 276px;
}
#apDiv17 {
	position:absolute;
	width:96px;
	height:39px;
	z-index:20;
	left: 505px;
	top: 819px;
}
#apDiv18 {
	position:absolute;
	width:116px;
	height:41px;
	z-index:21;
	left: 32px;
	top: 279px;
}
#apDiv19 {
	position:absolute;
	width:111px;
	height:42px;
	z-index:22;
	left: 40px;
	top: 277px;
}
#apDiv20 {
	position:absolute;
	width:99px;
	height:43px;
	z-index:23;
	left: 1113px;
	top: 814px;
}
#apDiv21 {
	position:absolute;
	width:112px;
	height:43px;
	z-index:24;
	left: 29px;
	top: 280px;
}
#apDiv22 {
	position:absolute;
	width:993px;
	height:163px;
	z-index:14;
	left: 264px;
	top: 962px;
}
</style>
</head>


<body>

<pre><p>                           <a href="../index.php" ><img src="../../Resources/eMart logo.png" width="170" height="67" alt="Logo" /></a>                                                                <b><a  style="color:#000; text-decoration:none;" href="../customer_support.php">Customer Support</a>  |  <a style="color:#000; text-decoration:none;" href="../Terms.php">Privacy Policy</a></b>
                                          <?php if ((@$_SESSION['status']== NULL)||($_SESSION['status']== "OUT")){echo"Welcome! <a href='../login.php'>Sign in</a> or <a href='../Register.php'>Register</a>";} else { echo "Welcome ".($_SESSION['fname'])." ".($_SESSION['lname']) ."<pre>                                  <a  class='underline' href='../refresh.php'>Logout</a>    <a class='underline' href='../editaccount.php' >My Account</a> </pre>" ; } ?> </pre>
<div id="DivHR">
  
<hr/></div>


<div id="DivHR">
  <p align="center"><a href="../index.php"><img  src="../../Resources/Home.inactive.png" 
onmouseover="src='../../Resources/Home.active.png'" 
onmouseout="src='../../Resources/Home.inactive.png'" width="159" height="21" /></a>

<a href="../Appliances/Appliances.php"><img  src="../../Resources/Appliances.inactive.png" 
onmouseover="src='../../Resources/Appliances.active.png'" 
onmouseout="src='../../Resources/Appliances.inactive.png'" width="159" height="21" /></a>

<a href="../Computers/Computers.php"><img  src="../Resources/Computers.active.png" 
onmouseover="src='../../Resources/Computers.inactive.png'" 
onmouseout="src='../../Resources/Computers.active.png'" width="159" height="21" /></a>

<a href="../Mp3 Players/MP3Players.php"><img  src="../Resources/MP3.inactive.png" 
onmouseover="src='../../Resources/MP3.active.png'" 
onmouseout="src='../../Resources/MP3.inactive.png'" width="159" height="21" /></a>

<hr/>
</p>
</div>
<div id="Pannel" style="background-image:url(../../Resources/Gallery%20Pannel.png); background-repeat:no-repeat">

<div id="cart"><a href="cart.php"><img src="../../Resources/Mycart.png" width="100" height="25" alt="cart" /></a></div>



</div>

<div id="apDiv1">
<?php
$con = mysql_connect("localhost","root","") or die ("Could not connect to DB!");
mysql_select_db ("web project",$con) or die ("could not select DB!");

$result = mysql_query("SELECT * FROM Products WHERE ProductCode = 'Acer-B41X'");

$row = mysql_fetch_array($result);


echo "<a href='Acer Notebook.php'><img src='".$row['ImageSmall']."' alt='Acer'></a>";
echo "<br/>";

echo "<p style='font-size:20px'>".$row['ProductName']."</p>";
echo "<p style='font-size:15px'>".$row['ProductCode']."</p>";

echo "<p style='font-size:15px'>".$row['ProductDescription']."</p>";


?>
    <div id='apDiv11'>
    <?php
	echo "<h3> Price: $".$row['ProductPrice']."</h3>";
    echo "<form action='../cart.php' method='post'>
            <input type='submit' value='Add to Cart' name= 'submit' />
            </form>";
    ?>
    </div>

</div>
<div id="apDiv2">
<?php


$result = mysql_query("SELECT * FROM Products WHERE ProductCode = 'Asus-F20X'");

$row = mysql_fetch_array($result);


echo "<a href='Asus Notebook.php'><img src='".$row['ImageSmall']."' alt='Asus'></a>";
echo "<br/>";

echo "<p style='font-size:20px'>".$row['ProductName']."</p>";
echo "<p style='font-size:15px'>".$row['ProductCode']."</p>";

echo "<p style='font-size:15px'>".$row['ProductDescription']."</p>";

?>

    <div id="apDiv12">
    <?php
    echo "<h3> Price: $".$row['ProductPrice']."</h3>";
    echo "<form action='cart.php' method='post'>
            <input type='submit' value='Add to Cart' name= 'submit' />
            </form>";
    ?>
    </div>
</div>
<div id="apDiv3">
<?php


$result = mysql_query("SELECT * FROM Products WHERE ProductCode = 'AW-J45Z'");

$row = mysql_fetch_array($result);


echo "<a href='Alienware Notebook.php'><img src='".$row['ImageSmall']."' alt='Alienware'></a>";
echo "<br/>";

echo "<p style='font-size:20px'>".$row['ProductName']."</p>";
echo "<p style='font-size:15px'>".$row['ProductCode']."</p>";

echo "<p style='font-size:15px'>".$row['ProductDescription']."</p>";

?>
    <div id="apDiv13">
    <?php
    echo "<h3> Price: $".$row['ProductPrice']."</h3>";
    echo "<form action='cart.php' method='post'>
            <input type='submit' value='Add to Cart' name= 'submit' />
            </form>";
    ?>
    </div>

</div>
<div id="apDiv4">
<?php


$result = mysql_query("SELECT * FROM Products WHERE ProductCode = 'LN-GT48'");

$row = mysql_fetch_array($result);


echo "<a href='Lenova Notebook.php'><img src='".$row['ImageSmall']."' alt='Lenova'></a>";
echo "<br/>";

echo "<p style='font-size:20px'>".$row['ProductName']."</p>";
echo "<p style='font-size:15px'>".$row['ProductCode']."</p>";

echo "<p style='font-size:15px'>".$row['ProductDescription']."</p>";
?>
    <div id="apDiv14">
    <?php
    echo "<h3> Price: $".$row['ProductPrice']."</h3>";
    echo "<form action='cart.php' method='post'>
            <input type='submit' value='Add to Cart' name= 'submit' />
            </form>";
    ?>
    </div>
</div>
<div id="apDiv5">

<?php


$result = mysql_query("SELECT * FROM Products WHERE ProductCode = 'Mac-K94G'");

$row = mysql_fetch_array($result);


echo "<a href='Mac Book Pro.php'><img src='".$row['ImageSmall']."' alt='Macbook Pro'></a>";
echo "<br/>";

echo "<p style='font-size:20px'>".$row['ProductName']."</p>";
echo "<p style='font-size:15px'>".$row['ProductCode']."</p>";

echo "<p style='font-size:15px'>".$row['ProductDescription']."</p>";

?>
    <div id="apDiv15">
    <?php
    
    echo "<h3> Price: $".$row['ProductPrice']."</h3>";
    
    
    echo "<form action='cart.php' method='post'>
            <input type='submit' value='Add to Cart' name= 'submit' />
            </form>";
    ?>
    </div>

</div>
<div id="apDiv6">

<?php


$result = mysql_query("SELECT * FROM Products WHERE ProductCode = 'BP-GT72'");

$row = mysql_fetch_array($result);

echo "<a href='iBuy Power Desktop.php'><img src='".$row['ImageSmall']."' alt='iBuy Power'></a>";
echo "<br/>";

echo "<p style='font-size:20px'>".$row['ProductName']."</p>";
echo "<p style='font-size:15px'>".$row['ProductCode']."</p>";

echo "<p style='font-size:15px'>".$row['ProductDescription']."</p>";
?>

    <div id="apDiv16">
    <?php
    echo "<h3> Price: $".$row['ProductPrice']."</h3>";
    
    
    echo "<form action='cart.php' method='post'>
            <input type='submit' value='Add to Cart' name= 'submit' />
            </form>";
    ?>
    </div>

</div>
<div id="apDiv7">

<?php


$result = mysql_query("SELECT * FROM Products WHERE ProductCode = 'CY-B45G'");

$row = mysql_fetch_array($result);


echo "<a href='Cyber Power Desktop.php'><img src='".$row['ImageSmall']."' alt='Cyber Power Desktop'></a>";
echo "<br/>";

echo "<p style='font-size:20px'>".$row['ProductName']."</p>";
echo "<p style='font-size:15px'>".$row['ProductCode']."</p>";

echo "<p style='font-size:15px'>".$row['ProductDescription']."</p>";

?>

    <div id="apDiv16">
    <?php
    echo "<h3> Price: $".$row['ProductPrice']."</h3>";
    
    
    echo "<form action='cart.php' method='post'>
            <input type='submit' value='Add to Cart' name= 'submit' />
            </form>";
    ?>
    </div>

</div>
<div id="apDiv8">

<?php


$result = mysql_query("SELECT * FROM Products WHERE ProductCode = 'HP-DJ49'");

$row = mysql_fetch_array($result);


echo "<a href='Hp Desktop.php'><img src='".$row['ImageSmall']."' alt='HP Desktop'></a>";
echo "<br/>";

echo "<p style='font-size:20px'>".$row['ProductName']."</p>";
echo "<p style='font-size:15px'>".$row['ProductCode']."</p>";

echo "<p style='font-size:15px'>".$row['ProductDescription']."</p>";

?>

    <div id="apDiv18">
    <?php
    
    echo "<h3> Price: $".$row['ProductPrice']."</h3>";
    
    
    echo "<form action='cart.php' method='post'>
            <input type='submit' value='Add to Cart' name= 'submit' />
            </form>";
    ?>
    </div>

</div>
<div id="apDiv9">
  
  <?php


$result = mysql_query("SELECT * FROM Products WHERE ProductCode = 'LEN-LJ34'");

$row = mysql_fetch_array($result);


echo "<a href='Lenova Desktop.php'><img src='".$row['ImageSmall']."' alt='Lenova Desktop'></a>";
echo "<br/>";

echo "<p style='font-size:20px'>".$row['ProductName']."</p>";
echo "<p style='font-size:15px'>".$row['ProductCode']."</p>";

echo "<p style='font-size:15px'>".$row['ProductDescription']."</p>";
?>

    <div id="apDiv19">
    
    <?php
    echo "<h3> Price: $".$row['ProductPrice']."</h3>";
    
    
    echo "<form action='cart.php' method='post'>
            <input type='submit' value='Add to Cart' name= 'submit' />
            </form>";
    ?>
    </div>
  
</div>
<div id="apDiv10">

<?php


$result = mysql_query("SELECT * FROM products WHERE ProductCode = 'Vel-360X'");

$row = mysql_fetch_array($result);


echo "<a href='Velocity Desktop.php'><img src='".$row['ImageSmall']."' alt='Velocity Desktop'></a>";
echo "<br/>";

echo "<p style='font-size:20px'>".$row['ProductName']."</p>";
echo "<p style='font-size:15px'>".$row['ProductCode']."</p>";

echo "<p style='font-size:15px'>".$row['ProductDescription']."</p>";
?>

    <div id="apDiv21">
    <?php
    echo "<h3> Price: $".$row['ProductPrice']."</h3>";
    echo "<form action='cart.php' method='post'>
            <input type='submit' value='Add to Cart' name= 'submit' />
            </form>";
    ?>
    </div>
    
</div>
</body>
</html> 